package cn.zzqayy.steward.gateway.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (BUser)实体类
 *
 * @author makejava
 * @since 2020-07-02 10:56:44
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName("b_user")
public class User implements Serializable {
    private static final long serialVersionUID = 558994070869314428L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 角色id
     */
    @TableField(value = "role_id")
    private Integer roleId;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 登陆的code
     */
    @TableField("login_code")
    private String loginCode;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

}